From 1af3042791c84c13fff570e284b6518d00c65ec1 Mon Sep 17 00:00:00 2001 From: Markus Rost Date: Mon, 20 May 2002 00:42:05 +0000 Subject: [PATCH] (find-dired): Implement revert-buffer-function. --- lisp/find-dired.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lisp/find-dired.el b/lisp/find-dired.el index 01d89fd9116..ec098d14ecf 100644 --- a/lisp/find-dired.el +++ b/lisp/find-dired.el @@ -121,10 +121,9 @@ as the final argument." (car find-ls-option))) ;; The next statement will bomb in classic dired (no optional arg allowed) (dired-mode dir (cdr find-ls-option)) - ;; This really should rerun the find command, but I don't - ;; have time for that. - (use-local-map (append (make-sparse-keymap) (current-local-map))) - (define-key (current-local-map) "g" 'undefined) + (set (make-local-variable 'revert-buffer-function) + `(lambda (ignore-auto noconfirm) + (find-dired ,dir ,find-args))) ;; Set subdir-alist so that Tree Dired will work: (if (fboundp 'dired-simple-subdir-alist) ;; will work even with nested dired format (dired-nstd.el,v 1.15 -- 2.30.2